package com.user.bean;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 评论实体类
 *
 * @author:HingLo
 * @create 2017-09-29 15:58
 **/
@Entity
@Table(name = "speaking")
public class Speaking {
    @Id
    private String id;//id
    private String uid;//评论人id
    private String rid;//评论软件的id
    private String contents;//评论内容
    private String ip;//ip地址
    private Date ctime;//时间
    private int star;//星级
    private int good;//点赞数目

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id.trim();
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid.trim();
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid.trim();
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip.trim();
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public int getGood() {
        return good;
    }

    public void setGood(int good) {
        this.good = good;
    }

    @Override
    public String toString() {
        return "Speaking{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", rid='" + rid + '\'' +
                ", contents='" + contents + '\'' +
                ", ip='" + ip + '\'' +
                ", ctime=" + ctime +
                ", star=" + star +
                ", good=" + good +
                '}';
    }
}
